import { create } from 'zustand'

interface AppState {
  loading: boolean
  setLoading: (loading: boolean) => void
  version: string
  setVersion: (version: string) => void
}

export const useAppStore = create<AppState>((set) => ({
  loading: false,
  setLoading: (loading) => set({ loading }),
  version: '',
  setVersion: (version) => set({ version })
}))